package server.services.channels;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.ArrayList;
import java.util.List;

import client.services.IServicesClient;

/**
 * Object proposed by server services interface to client
 * !!!==> Re-call : Client call "IServicesServeur", and 
 * remote object returned offers "IChannel" object
 * (Possible to add others...)
 * */
public interface IChannel extends Remote{

	public void inscription(IServicesClient client) throws RemoteException;
	public void uninscription(IServicesClient client) throws RemoteException;
	public void broadcast(String message) throws RemoteException;
	public void broadcastChannel(String message) throws RemoteException;
	public List<String> getClientsName() throws RemoteException;
	public ArrayList<String> getClientsNameServer() throws RemoteException;
	public void testDeconnecte() throws RemoteException;
}
